package com.itheima.service.impl;

import com.itheima.dao.Impl.UserDaoImpl;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDaoImpl userDao;

    public void setUserDao(UserDaoImpl userDao){
        this.userDao=userDao;
    }

    public void save() {
        System.out.println("UserService save");
        userDao.save();
    }

}
